package com.atguigu.tingshu.account.service;

import com.atguigu.tingshu.model.account.UserAccount;
import com.atguigu.tingshu.model.account.UserAccountDetail;
import com.atguigu.tingshu.vo.account.AccountDeductVo;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;

import java.math.BigDecimal;
import java.util.Map;

public interface UserAccountService extends IService<UserAccount> {


    void saveUserAccount(Map<String, Object> mqData);

    void saveUserAccountDetail(Long userId, String title, String tradeType, BigDecimal amount, String orderNo);

    BigDecimal getAvailableAmount(Long userId);

    void checkAndDeduct(AccountDeductVo accountDeductVo);

    void rechargePaySuccess(String orderNo);

    void getUserAccountDetailPage(Page<UserAccountDetail> pageInfo, String tradeType, Long userId);
}
